package com.qiche.service;

import com.github.pagehelper.PageInfo;
import com.qiche.aspect.Result;
import com.qiche.model.Role;

import java.util.List;

public interface RoleService extends IService<Role> {

     List<Role> queryRoleListWithSelected(Integer uid);

    List<Role> queryAdminRoleListWithSelected(Integer uid);

    PageInfo<Role> selectByPage(Role role, int start, int length);

    /**
     * 删除角色 同时删除角色资源表中的数据
     * @param roleid
     */
     Result delRole(Integer roleid);

     Role queryRoleByUserId(Integer userId);




     List<Role> selectRolesByMerchantId(Long  merchantId);


}
